package view

import (
	"github.com/labstack/echo"
	"src/controller"
)

func LostProperty(notice *echo.Group) {
	notice.GET("", controller.GetNewLostProperty)
	notice.GET("/all", controller.GetLostPropertyAll)
	notice.GET("/id", controller.GetByID)
	notice.POST("/action/add", controller.CreatLostProperty)
	notice.POST("/action/finish", controller.FinishLostProperty)
	notice.POST("/action/change", controller.ChangeLostProperty)
	notice.POST("/action/delete", controller.DeleteLostProperty)

	notice.OPTIONS("/action/add", controller.Kuayuan)
	notice.OPTIONS("/action/finish", controller.Kuayuan)
	notice.OPTIONS("/action/change", controller.Kuayuan)
	notice.OPTIONS("/action/delete", controller.Kuayuan)
}
